import React from 'react'
import {Button} from "antd";
import { observer } from "mobx-react-lite"
function MobxDom ({store}){
    console.log(store)
    let {count ,increment} = store.mobx
    let task = store.task
    return (
            <div>
                <div>{count}</div>
                <Button onClick={increment}>点击</Button>

                <div>{task.name}</div>
                <Button onClick={task.increment}>点击</Button>
            </div>
        )
}

export default observer(MobxDom)
